repo.or.cz
/
EroBeats.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rm update
[EroBeats.git]
/
Djinn and Tonic - Erobeats
/
Animation.h
blob
49a13577fc3ab0f6ced6158f1bac6c2bcb46d00c
1
#pragma once
2
#include <vector>
3
#include <SDL/SDL.h>
4
5
class
Animation
6
{
7
public
:
8
Animation
();
9
Animation
(
std
::
vector
<
SDL_Texture
*>
set
);
10
~
Animation
();
11
12
SDL_Texture
*
itterateAnimation
(
int
framerate
);
13
void
destroyAnimation
();
14
void
resetAnimation
();
15
bool
checkDone
();
16
17
int
counter
;
18
int
gameFPS
;
19
20
bool
done
;
21
22
int
currentPosition
;
23
int
previousPosition
;
24
int
animationSize
;
25
std
::
vector
<
SDL_Texture
*>
frames
;
26
};
27